package com.vshop.mapper;

import com.vshop.entity.comentity.UserInfoReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoReportMappper {

    public List<UserInfoReport> queryDeviceCodeByOpenId(@Param("openId") String openId, @Param("partnerCode") String partnerCode);

    public void insertWeixinHavaCardAndExpressInfo(UserInfoReport userInfoReport);

    public int queryWeixinHavaCardAndExpressInfo(@Param("partnerCode") String partnerCode, @Param("openId") String openId, @Param("deviceCode") String deviceCode, @Param("recipientName") String recipientName, @Param("recipientPhone") String recipientPhone, @Param("recipientAddress") String recipientAddress, @Param("recipientCompany") String recipientCompany, @Param("recipientEmail") String recipientEmail, @Param("expressType") String expressType, @Param("expressPrice") String expressPrice);

    public int queryWeixinHavaCard(@Param("partnerCode") String partnerCode, @Param("openId") String openId, @Param("deviceCode") String deviceCode);

    public void insertWeixinHavaCard(UserInfoReport userInfoReport);

    public int queryWeixinNoCardAndExpressInfo(@Param("partnerCode") String partnerCode, @Param("openId") String openId, @Param("recipientName") String recipientName, @Param("recipientPhone") String recipientPhone, @Param("recipientAddress") String recipientAddress, @Param("recipientCompany") String recipientCompany, @Param("recipientEmail") String recipientEmail, @Param("expressType") String expressType, @Param("expressPrice") String expressPrice);

    public void insertWeixinNoCardAndExpressInfo(UserInfoReport userInfoReport);

    public int queryWeixinNoCard(@Param("partnerCode") String partnerCode, @Param("openId") String openId);

    public void insertWeixinNoCard(UserInfoReport userInfoReport);

    public int queryWebHavaCardAndExpressInfo(@Param("partnerCode") String partnerCode, @Param("deviceCode") String deviceCode, @Param("recipientName") String recipientName, @Param("recipientPhone") String recipientPhone, @Param("recipientAddress") String recipientAddress, @Param("recipientCompany") String recipientCompany, @Param("recipientEmail") String recipientEmail, @Param("expressType") String expressType, @Param("expressPrice") String expressPrice);

    public void insertWebHavaCardAndExpressInfo(UserInfoReport userInfoReport);

    public int queryWebHavaCard(@Param("partnerCode") String partnerCode, @Param("deviceCode") String deviceCode);

    public void insertWebHavaCard(UserInfoReport userInfoReport);

    public int queryWebNoCardAndExpressInfo(@Param("partnerCode") String partnerCode, @Param("recipientName") String recipientName, @Param("recipientPhone") String recipientPhone, @Param("recipientAddress") String recipientAddress, @Param("recipientCompany") String recipientCompany, @Param("recipientEmail") String recipientEmail, @Param("expressType") String expressType, @Param("expressPrice") String expressPrice);

    public void insertWebNoCardAndExpressInfo(UserInfoReport userInfoReport);
}
